$('tr').click(function (e) {
    let classList = e.currentTarget.classList;
    if (!classList.contains('selected')) {
        classList.add('selected');
    } else {
        classList.remove('selected');
    }
})

$('#select-all').click(function () {
    $("tr").addClass('selected');
})

$('#select-none').click(function () {
    $("tr").removeClass('selected')
})

$('#select-reverse').click(function () {
    let tr = $("tr");
    tr.toggleClass('selected');
})


